import request from "@/utils/request";

// 新建商品住宅需求预测-新建商品住宅需求预测
export const getDefaultType = (params: any) => {
  return request({
    url: "/screen/construction/getDefaultType",
    method: "get",
    params: params,
  });
};

// 新建商品住宅需求预测-各城市新建商品房销售面积
export const getNewSaleArea = (params: any) => {
  return request({
    url: "/screen/construction/getNewSaleArea",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-新建商品房销售面积
export const getNewSaleAreaByCode = (params: any) => {
  return request({
    url: "/screen/construction/newSaleAreaByCode",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-热销商品住宅分析
export const getHotHouse = (params: any) => {
  return request({
    url: "/screen/construction/getHotHouse",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-各城市新建商品房交易价格
export const getNewHousePrice = (params: any) => {
  return request({
    url: "/screen/construction/getNewHousePrice",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-新建商品住宅销售及去化周期分析
export const getYcfxNewStarted = (params: any) => {
  return request({
    url: "/screen/construction/ycfxNewStarted",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-未来需求预测
export const getFutureForecast = (params: any) => {
  return request({
    url: "/screen/construction/futureForecast",
    method: "post",
    data: params,
  });
};

// 新建商品住宅需求预测-各城市新建商品住宅库存面积
export const getKcArea = (params: any) => {
  return request({
    url: "/screen/construction/getKcArea",
    method: "post",
    data: params,
  });
};

// 新建商品房需求预测
export const getSelectNumberForecast = (params: any) => {
  return request({
    url: "/screen/analyseForecast/selectNumberForecast",
    method: "get",
    params: params,
  });
};
